/*
 * Globals.h
 *
 *  Created on: Jan 1, 2014
 *      Author: nick
 */

#ifndef GLOBALS_H_
#define GLOBALS_H_

#include <stddef.h>
#include "SDL/SDL.h"

#include <string>

using namespace std;

//Screen attributes
const int SCREEN_WIDTH = 1080;
const int SCREEN_HEIGHT = 700;
const int SCREEN_BPP = 32;

//The dimensions of the level
const int LEVEL_WIDTH = 1280;
const int LEVEL_HEIGHT = 960;

//Tile constants
const int TILE_WIDTH = 80;
const int TILE_HEIGHT = 80;
const int TOTAL_TILES = 192;
const int TILE_SPRITES = 12;

//The different tile sprites
const int TILE_BRICK = 0;
const int TILE_WALL = 1;

//The rate the camera moves
const int CAMERA_SPEED = 5;

//The measurements of the menu
const int MENU_WIDTH = 100;
const int MENU_HEIGHT = 100;

const string TILE_FILE = "/home/nick/code/Media/Map/tiles.png";

//The surfaces
extern SDL_Surface *dot;
extern SDL_Surface *screen;
extern SDL_Surface *tileSheet;

//Sprite from the tile sheet
extern SDL_Rect clips[ TILE_SPRITES ];

//The event structure
extern SDL_Event event;

//The camera
//extern Camera camera;

//The menu
extern SDL_Rect menu;

#endif /* GLOBALS_H_ */
